import Http from "../http";

export async function strategyFollowPageApi(params:any) {
    const { data } = await Http.get('strategy/trade/list', params)
    return data
}

export function tradeDetailApi(params:any) {
    return Http.get('strategy/trade/detail', params)
}

export function endFollowApi(package_id:number) {
    return Http.get('/strategy/trade/end', {package_id})
}


export async function profitSummaryApi(params:any) {
    const { data } = await Http.get('strategy/trade/result', params)
    return data
}

export async function transactionDetailApi(params:any) {
    const { data } = await Http.get('strategy/trade/transactions', params)
    return data
}

export async function positionApi(params:any) {
    const { data } = await Http.get('strategy/trade/position', params)
    return data
}

export async function strategyProfitApi(params:any) {
    const { data } = await Http.get('strategy/trade/strategy_returns', params)
    return data
}

export async function benchmarkProfitApi(params:any) {
    const { data } = await Http.get('strategy/trade/benchmark_returns', params)
    return data
}